package edu.sctu.practice.class02.yangshengyu.assign03.teat02;

import java.lang.*;

/**
 * Created by Cullen on 2015/10/24.
 */
public class Max {

    public static Comparable max(Comparable o1, Comparable o2) {
        if (o1.compareTo(o2) == 0) {
            System.out.println("第一个类面积较大");
            return o1;
        } else {
            System.out.println("第二个类面积较大");
            return o2;
        }

    }
}
